package cn.wonderland.house.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 优惠券表

 * </p>
 *
 * @author wonderland
 * @since 2023-04-26
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponTemp implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long couponId;
    /**
     * 优惠券名称
     */
    private String couponName;
    /**
     * 优惠券类型：1直减现金券2满减现金券
     */
    private Integer couponType;
    /**
     * 优惠金额
     */
    private BigDecimal couponAmout;
    /**
     * 满减金额
     */
    private String fullAmount;
    /**
     * 生效时间
     */
    private Date effectiveStartTime;
    /**
     * 失效时间
     */
    private Date effectiveEndTime;
    /**
     * 绑定的用户
     */
    private Integer userId;


    @Override
    public String toString() {
        return "CouponTemp{" +
        ", couponId=" + couponId +
        ", couponName=" + couponName +
        ", couponType=" + couponType +
        ", couponAmout=" + couponAmout +
        ", fullAmount=" + fullAmount +
        ", effectiveStartTime=" + effectiveStartTime +
        ", effectiveEndTime=" + effectiveEndTime +
        ", userId=" + userId +
        "}";
    }
}
